home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / share / src / OpenGL / toolkits / libglut / layerutil.h.z / layerutil.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  1.4 KB  |  53 lines

  1. #ifndef __layerutil_h__
  2. #define __layerutil_h__
  3.  
  4. /* Copyright (c) Mark J. Kilgard, 1993, 1994, 1995, 1996. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10. /* Based on XLayerUtil.h: Revision: 1.3 */
  11.  
  12. #include <X11/Xlib.h>
  13. #include <X11/Xutil.h>
  14. #include <X11/Xmd.h>
  15.  
  16. /* Transparent type values */
  17. /* None                       0 */
  18. #define TransparentPixel      1
  19. #define TransparentMask       2
  20.  
  21. /* layered visual info template flags */
  22. #define VisualLayerMask        0x200
  23. #define VisualTransparentType    0x400
  24. #define VisualTransparentValue    0x800
  25. #define VisualAllLayerMask    0xFFF
  26.  
  27. /* layered visual info structure */
  28. typedef struct _XLayerVisualInfo {
  29.   XVisualInfo vinfo;
  30.   long layer;
  31.   long type;
  32.   unsigned long value;
  33. } XLayerVisualInfo;
  34.  
  35. /* SERVER_OVERLAY_VISUALS property element */
  36. typedef struct _OverlayInfo {
  37.   /* Avoid 64-bit portability problems by being careful to use
  38.      longs due to the way XGetWindowProperty is specified. Note 
  39.      that these parameters are passed as CARD32s over X
  40.      protocol. */
  41.   long overlay_visual;
  42.   long transparent_type;
  43.   long value;
  44.   long layer;
  45. } OverlayInfo;
  46.  
  47. extern XLayerVisualInfo *__glutXGetLayerVisualInfo(Display *,
  48.   long, XLayerVisualInfo *, int *);
  49. extern Status __glutXMatchLayerVisualInfo(Display *,
  50.   int, int, int, int, XLayerVisualInfo *);
  51.  
  52. #endif /* __layerutil_h__ */
  53.